/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Trabalho3.PasswordChecker;

import Trabalho3.RegrasPasswordChecker01.*;
import Trabalho3.RuleFactory;
import java.util.ArrayList;

/**
 *
 * @author geraldo
 */
public class PasswordChecker01 extends PasswordChecker{
    
    
    public PasswordChecker01(String password) {
    this.regras = new ArrayList<>();
    regras.add(new RegraTamanho(password));
    regras.add(new RegraSimbolos(password));
    regras.add(new RegraLetrasMinusculas(password));
    regras.add(new RegraLetrasMaiusculas(password));
    regras.add(new RegraDigitos(password));
    regras.add(new RegraBonusMultiplosChars(password));
 }

    @Override
    public String classificarSenha(){
        int pontos = this.calcularForcaDeSenha();
        String classificacao = new Veredicto01().gerarVeredicto(pontos);
        return classificacao;
    }
}
